<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../../comunes/header.jsp" />
<h2>Editar el Paso ${paso.llave.clavePaso}</h2>
<form:form method="POST" modelAttribute="paso">
   <table class="tbl_formulario">
      <tr><th>Clave:</th>
         <td>
            <c:out value="${paso.llave.clavePaso}"/>
            <form:hidden path="llave.claveFlujo" />
            <form:hidden path="llave.clavePaso" />
            <form:hidden path="usuarioCreo"/>
            <form:errors path="llave" cssClass="error" />
         </td>
      </tr>
      <tr><th>Descripci&oacute;n:</th>
         <td>
            <form:input path="descripcion" size="30" maxlength="100" />
            <form:errors path="descripcion" cssClass="error" />
         </td>
      </tr>
      <tr><th>Decripci&oacute;n Corta:</th>
         <td>
            <form:input path="descripcionCorta" size="15" maxlength="15" />
            <form:errors path="descripcionCorta" cssClass="error" />
         </td>
      </tr>
      <tr><th>Env&iacute;a Aviso:</th>
         <td>
            <form:radiobutton path="enviaAviso" value="S" label="Si" />
            <form:radiobutton path="enviaAviso" value="N" label="No" />
            <form:errors path="enviaAviso" cssClass="error" />
         </td>
      </tr>
      <tr><th>Tipo Paso:</th>
         <td>
            <form:radiobutton path="tipoPaso" value="I" label="Inicial" />
            <form:radiobutton path="tipoPaso" value="M" label="Medio" />
            <form:radiobutton path="tipoPaso" value="F" label="Final" />
            <form:errors path="tipoPaso" cssClass="error" />
            <br/>Final Correcto?
            <form:radiobutton path="finalCorrecto" value="S" label="Si" />
            <form:radiobutton path="finalCorrecto" value="N" label="No" />
            <form:errors path="finalCorrecto" cssClass="error" />
         </td>
      </tr>
      <tr><th>Monto Aprobaci&oacute;n:</th>
         <td>
            <form:input path="montoAprobacion" size="15" maxlength="16" />
            <form:errors path="montoAprobacion" cssClass="error" />
         </td>
      </tr>
      <tr>
         <td><button type="reset" class="btn_regresar" title="Regresar">Regresar</button></td>
         <td><button type="submit" class="btn_guardar" title="Guardar">Guardar</button></td>
      </tr>
   </table>
</form:form><c:url var="regrUrl" value="/flujos/pasos?cf=${paso.llave.claveFlujo}" />
<script type='text/javascript'>
   $(document).ready(function() {
      $(".btn_regresar").click(function() {
         window.location.replace('${regrUrl}');
      });
   });
</script>
<jsp:include page="../../comunes/footer.jsp" />